package com.lujianfei.android_1_glide;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Environment;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;

import java.io.File;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.btn_glide_local_load).setOnClickListener(this);
        findViewById(R.id.btn_glide_network_load).setOnClickListener(this);
        findViewById(R.id.btn_glide_circle_load).setOnClickListener(this);
        findViewById(R.id.btn_glide_round_load).setOnClickListener(this);
        findViewById(R.id.btn_glide_circle_border_load).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.btn_glide_local_load:
            {
                startActivity(new Intent(this,LocalActivity.class));
            }
            break;
            case R.id.btn_glide_network_load:
            {
                startActivity(new Intent(this,NetworkActivity.class));
            }
            break;
            case R.id.btn_glide_circle_load:
            {
                startActivity(new Intent(this,CircleActivity.class));
            }
            break;
            case R.id.btn_glide_round_load:
            {
                startActivity(new Intent(this,RoundActivity.class));
            }
            break;
            case R.id.btn_glide_circle_border_load:
            {
                startActivity(new Intent(this,CircleBorderActivity.class));
            }
            break;
        }
    }
}
